// pages/member/profile/profile.js
var api = require('../../../utils/httpUtil.js');
var app = getApp();
Component({
  options: {
    addGlobalClass: true,
  },
  data: {
    imgUrl: api.imgUrl,
    PageCur: 'about',
    iconList: [{
      id: 1,
      icon: 'friendfill',
      color: 'blue',
      badge: 3,
      name: '访客',
      url: '/pages/more/develop'
    }, {
      id: 2,
      icon: 'locationfill',
      color: 'cyan',
      badge: 0,
      name: '足迹',
      url: '/pages/more/develop'
    }, {
      id: 3,
      icon: 'writefill',
      color: 'red',
      badge: 0,
      name: '待办',
      url: '/pages/more/develop'
    }, {
      id: 4,
      icon: 'noticefill',
      color: 'yellow',
      badge: 0,
      name: '消息',
      url: '/pages/member/msg/msg'
    }, {
      id: 5,
      icon: 'formfill',
      color: 'olive',
      badge: 3,
      name: '会议管理',
      url: '/pages/meeting/center/center'
    }],
    gridCol: 4,
    skin: false,
    cardCur: 0,
  },
  lifetimes: {
    // 组件生命周期函数，在组件布局完成后执行，此时可以获取节点信息
    ready: function () {
      this.setData({
        avatarUrl: app.globalData.userInfo.avatarUrl,
        nickName: app.globalData.userInfo.nickName,
      })
    }
  },
})